import request from "@/utils/request.js";

// 创建积分订单
/*
account:用户账号
code: 兑换积分编码
num: 兑换数量
*/
export function orderCreate(data) {
  return request({
    url: "/mobcoop-api/v1/mobcoop/fulu/orderCreate",
    method: "post",
    params: data,
  });
}
// 积分查询
export function integralQuery(data) {
  return request({
    url: "/mobcoop-api/v1/mobcoop/fulu/integralQuery",
    method: "post",
    params: data,
  });
}

// 支付积分订单（同步）
export function orderPay(data) {
  return request({
    url: "/mobcoop-api/v1/mobcoop/fulu/orderPay",
    method: "post",
    params: data,
  });
}

// 可用积分商品列表查询
export function getGoodsList(data) {
  return request({
    url: "/mobcoop-api/v1/mobcoop/fulu/goodsList",
    method: "post",
    params: data,
  });
}

// 获取积分对应红包列表
export function getElmMobRelList() {
  return request({
    url: "/mobcoop-api/services/mobcoop/elmMobRelList",
    method: "get",
  });
}
